from django import forms
from djangobb.utils import recaptcha 

class LoginForm(recaptcha.RecaptchaForm):
    uname    = forms.CharField()
    passwd   = forms.CharField(widget=forms.PasswordInput(render_value=False))

class SignupForm(recaptcha.RecaptchaForm):
    uname       = forms.CharField()
    passwd      = forms.CharField(widget=forms.PasswordInput(render_value=False))
    rptpasswd   = forms.CharField(widget=forms.PasswordInput(render_value=False))
    email       = forms.EmailField()
    city        = forms.CharField()
    country     = forms.CharField()
    zip         = forms.CharField()
    captcha     = recaptcha.RecaptchaField(widget=recaptcha.RecaptchaWidget(theme='clean'))

class ChprofileForm(recaptcha.RecaptchaForm):
    city        = forms.CharField()
    country     = forms.CharField()
    zip         = forms.CharField()

class ChpasswdForm(recaptcha.RecaptchaForm):
    oldpasswd   = forms.CharField(widget=forms.PasswordInput(render_value=False))
    newpasswd   = forms.CharField(widget=forms.PasswordInput(render_value=False))
    rptpasswd   = forms.CharField(widget=forms.PasswordInput(render_value=False))

class PasswdResetForm(recaptcha.RecaptchaForm):
    uname       = forms.CharField()
    city        = forms.CharField()
    country     = forms.CharField()
    zip         = forms.CharField()

